<template>
  <div class="module-section">
    <div class="module-title">
      <i :class="icon"></i>{{ title }}
    </div>
    <div class="module-content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ModuleSection',
  props: {
    title: {
      type: String,
      required: true
    },
    icon: {
      type: String,
      default: 'fas fa-box'
    }
  }
}
</script>

<style scoped>
.module-section {
  margin-bottom: 20px;
}

.module-section:last-child {
  margin-bottom: 0;
}

.module-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.module-title i {
  margin-right: 8px;
  color: #1890ff;
}

.module-content {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
}
</style> 